#!/bin/bash

echo "staring accel-telemetry and device plugin..."
if [[ ! -c /dev/qat_adf_ctl ]]; then
        echo "/dev/qat_adf_ctl not found!"
        /usr/bin/accel-telemetry prometheus
else
        /usr/bin/accel-telemetry prometheus &
        /usr/bin/qat_plugin "$@"
fi
